<?php
namespace jy_merchgame_fx;
defined('BY_JYA') or exit('error');
/*
*/
class fileds extends \plugin{
	/*
		获取不同活动的默认字段
	*/
	public function get_fileds(){
		$fileds=array(
				array('title'=>'商品名称','type'=>'1','ismust'=>'0','value'=>'商品名称'),
				array('title'=>'商品图片','type'=>'3','ismust'=>'0','value'=>'商品图片'),
				array('title'=>'单位(件)','type'=>'1','ismust'=>'0','value'=>''),
				array('title'=>'价格(￥)','type'=>'18','ismust'=>'0','value'=>''),
				array('title'=>'库存','type'=>'2','ismust'=>'0','value'=>'1000'),
		);
		return $fileds;
	}
	public function get_canyufileds(){
		$fileds=$this->setting['canyufileds'];
		if(!$fileds){
			$fileds=array(
				array('title'=>'联系人','type'=>'1','isopen'=>1,'ismust'=>'0','value'=>''),
				array('title'=>'联系电话','type'=>'8','isopen'=>1,'ismust'=>'0','value'=>''),
			);
		}
		return $fileds;
	}
}